using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ESoft.Core.Data;
using ESoft.Core.Data.Entity;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace ESoft.Portal.Data.Domain.Entity
{
    /// <summary>
    /// CContentChannel
    /// </summary>    
	[Table("c_content_channel")]
    public partial class CContentChannelEntity : BaseModel
    {
		/// <summary>
        /// 
        /// </summary>
		[Key] 
		[Column("CHANNEL_ID")]
        public string ChannelId { get; set; }
		/// <summary>
        /// 频道名称
        /// </summary> 
		[Column("CHANNEL_NAME")]
        public string ChannelName { get; set; }
		/// <summary>
        /// 频道类型1产品列表2文章列表3下载中心4单独页面
        /// </summary> 
		[Column("CHANNEL_TYPE")]
        public int ChannelType { get; set; }
		/// <summary>
        /// 机构标识
        /// </summary> 
		[Column("ORG_ID")]
        public string OrgId { get; set; }
		/// <summary>
        /// 排序
        /// </summary> 
		[Column("SORT")]
        public int Sort { get; set; }
		/// <summary>
        /// 父级标识
        /// </summary> 
		[Column("FATHER_CHANNEL_ID")]
        public string FatherChannelId { get; set; }
		/// <summary>
        /// 详情
        /// </summary> 
		[Column("RICH_TEXT_ID")]
        public string RichTextId { get; set; }
		/// <summary>
        /// 外链
        /// </summary> 
		[Column("URL")]
        public string Url { get; set; }
		/// <summary>
        /// 是否推荐1是2否
        /// </summary> 
		[Column("IS_HOT")]
        public int IsHot { get; set; }
		/// <summary>
        /// 大图标识
        /// </summary> 
		[Column("IMAGE_ID")]
        public string ImageId { get; set; }
		/// <summary>
        /// 
        /// </summary> 
		[Column("CREATE_DATETIME")]
        public DateTime? CreateDatetime { get; set; }
		/// <summary>
        /// 是否锁定1是2否
        /// </summary> 
		[Column("IS_LOCK")]
        public int? IsLock { get; set; }
    }

		public class CContentChannelConfiguration : EntityMappingConfiguration<CContentChannelEntity>
    {
        public override void Map(EntityTypeBuilder<CContentChannelEntity> b)
        {
        }
    }
}

